package c.h.b.a.a;

import android.content.Context;
import c.h.b.a.a.e.a;
import c.h.b.a.a.e.b;

/* compiled from: AlphaAdLoader */
public final /* synthetic */ class c {
    public static void a(Context context, a aVar, b bVar) {
        d fVar;
        d dVar = null;
        for (a a : e.b.a) {
            dVar = a.a(aVar.b);
            if (dVar != null) {
                break;
            }
        }
        if (dVar == null) {
            fVar = new f();
        } else {
            fVar = new b(dVar);
        }
        int i = aVar.c;
        if (i == 1) {
            fVar.a(context, aVar, bVar);
        } else if (i == 2) {
            fVar.b(context, aVar, bVar);
        } else if (i == 4) {
            fVar.c(context, aVar, bVar);
        } else if (i != 5) {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(aVar.b);
            stringBuilder.append(" unsupport");
            bVar.d(stringBuilder.toString());
        } else {
            fVar.d(context, aVar, bVar);
        }
    }
}
